#!/usr/bin/env bash

./test_ov_2 -m=0 -f=865001100010001000100000 -e=a2ff2aa5dea32bce83a828bde0e91b03 -s=dev-julink-edwin-d636832e40bfa289.elb.eu-central-1.amazonaws.com:443 -n=10000 -c=50000000 -t=180 -hb=60 -pos=100000000000

./test_ov_2 -m=0 -f=865001100010001000100000 -e=a2ff2aa5dea32bce83a828bde0e91b03 -s=dev-julink-edwin-d636832e40bfa289.elb.eu-central-1.amazonaws.com:443 -n=50000 -c=50000000 -t=180 -hb=60 -pos=100000070000

./test_ov_2 -m=0 -f=865001100010001000100000 -e=a2ff2aa5dea32bce83a828bde0e91b03 -s=dev-julink-edwin-d636832e40bfa289.elb.eu-central-1.amazonaws.com:443 -n=50000 -c=50000000 -t=60 -hb=60 -pos=100000100000

./test_ov_2 -m=0 -f=865001100010001000100000 -e=a2ff2aa5dea32bce83a828bde0e91b03 -s=dev-julink-edwin-d636832e40bfa289.elb.eu-central-1.amazonaws.com:443 -n=50000 -c=50000000 -t=60 -hb=60 -pos=100000150000





cd /var/log/nb-iot-platform/ac-julink/
tail -f ac-julink.INFO |grep -v EOF | grep -E "RECORD"

tail -f ac-julink.INFO |grep -v EOF | grep -E "consume"

for i in `seq 1 10000`; do threadNum=`ps -eLf | wc -l`; connNum=`netstat -antpl | grep -i estab | wc -l`; echo "threadNum: $threadNum, connNum: $connNum"; sleep 10; done

for i in `seq 1 10000`; do echo "+++++++";netstat -antpl | grep -i estab | awk '{print $5}'|  cut -d ':' -f1 | sort | uniq -c; echo "+++++++";sleep 3; done

for i in `seq 1 10000`; do crictl stats | grep 4cfb487c755d6; sleep 3; done

cat /proc/sys/net/ipv4/ip_local_port_range



profiler start
profiler stop --format html --file /tmp/20240401-3.html
